// 会议模型类
// 包含会议产品包和产品的数据模型

class WorkPackage {
  final String id; // 添加唯一标识符
  final String name; // 产品包名称
  final double price; // 产品包价格
  final String tag; // 产品包标签(如"热门"、"推荐"等)
  final List<WorkProduct> products; // 产品包中包含的产品列表
  final List<WorkImages> images;
  final List<WorkVideos> videos;

  WorkPackage({
    required this.id,
    required this.name,
    required this.price,
    this.tag = '',
    required this.products,
    this.images = const [],
    this.videos = const [],
  });
}

class WorkProduct {
  final String name; // 名称
  final double price; // 价值
  final String saleCode; // 销售品编码
  final String saleName; // 销售品名称
  final List<String> content; // 内容
  WorkProduct({
    required this.name,
    required this.price,
    required this.saleCode,
    required this.saleName,
    required this.content,
  });
}

class WorkImages {
  final String name; // 名称
  final String url; // 图片URL

  WorkImages({
    required this.name,
    required this.url,
  });
}

class WorkVideos {
  final String name; // 名称
  final String url; // 视频URL

  WorkVideos({
    required this.name,
    required this.url,
  });
}

/// 示例数据 - 会议产品包列表
List<WorkPackage> getWorkPackages() {
  return [
    WorkPackage(
      id: 'mp001', // 添加唯一ID
      name: '标准款',
      price: 2999,
      tag: '热销',
      products: [
        WorkProduct(
          name: '办公专线',
          price: 299,
          saleName: '互联网专线（50M）安全大脑（100M）',
          saleCode: '908014746',
          content: [
            '互联网专线（50M）',
            '安全大脑（100M）',
          ],
        ),
        WorkProduct(
          name: '办公光网',
          price: 299,
          saleName: '299元商企全光套餐',
          saleCode: '908014603',
          content: [
            'FTTR-B1主1从',
            '1000M宽带（上行100M，下行1000M）',
            '云电脑账号（4核8G）6个',
          ],
        ),
        WorkProduct(
          name: '办公终端',
          price: 3000,
          saleName: ' 云电脑一体机月付包*6',
          saleCode: '908012700',
          content: [
            '云电脑一体机6台',
            '云电脑AI应用中心',
          ],
        ),
        WorkProduct(
          name: '办公安防',
          price: 299,
          saleName: '商企云眼25元优惠礼包*5',
          saleCode: '908015311',
          content: [
            '摄像头5个',
            '7天全天云回看',
            '区域入侵AI',
          ],
        ),
      ],
      images: [
        WorkImages(
          name: '安全大脑',
          url: 'assets/images/anquandanao.jpg',
        ),
        WorkImages(
          name: '天翼云电脑一体机',
          url: 'assets/images/yundiannao.jpg',
        ),
      ],
      videos: [
        WorkVideos(
          name: 'FTTB',
          url: '',
        ),
        WorkVideos(
          name: '仓库AI监控',
          url: '',
        ),
        WorkVideos(
          name: '产业看护场景',
          url: '',
        ),
        WorkVideos(
          name: '道路安全场景',
          url: '',
        ),
        WorkVideos(
          name: '火情预警AI监控',
          url: '',
        ),
        WorkVideos(
          name: '垃圾治理场景',
          url: '',
        ),
        WorkVideos(
          name: '明厨亮灶AI监控',
          url: '',
        ),
        WorkVideos(
          name: '人车布控',
          url: '',
        ),
        WorkVideos(
          name: '消防占道AI监控',
          url: '',
        ),
      ],
    ),
    WorkPackage(
      id: 'mp002', // 添加唯一ID
      name: '升级版',
      price: 5999,
      tag: '升级',
      products: [
        WorkProduct(
          name: '办公专线',
          price: 299,
          saleName: '互联网专线（100M）安全大脑（100M）',
          saleCode: '908014746',
          content: [
            '互联网专线（100M）',
            '安全大脑（100M）',
          ],
        ),
        WorkProduct(
          name: '办公光网',
          price: 599,
          saleName: '499元商企全光套餐 FTTR-B子光猫加装包*2',
          saleCode: '908015577',
          content: [
            'FTTR-B 1主4从',
            '1000M宽带（上行100M，下行1000M）',
          ],
        ),
        WorkProduct(
          name: '办公终端',
          price: 3000,
          saleName: ' 中兴云PAD*1 云电脑一体机月付包*10',
          saleCode: '908012699',
          content: [
            '中兴云PAD*1台',
            '云电脑一体机*10台',
            '云电脑账号（4核8G）',
            '云电脑AI应用中心',
          ],
        ),
        WorkProduct(
          name: '办公安防',
          price: 299,
          saleName: '商企云眼25元优惠礼包*10',
          saleCode: '908015311',
          content: [
            '摄像头10个',
            '7天全天云回看',
            '区域入侵AI',
          ],
        ),
      ],
      images: [
        WorkImages(
          name: '安全大脑',
          url: 'assets/images/anquandanao.jpg',
        ),
        WorkImages(
          name: '天翼云电脑一体机',
          url: 'assets/images/yundiannao.jpg',
        ),
      ],
      videos: [
        WorkVideos(
          name: 'FTTB',
          url: '',
        ),
        WorkVideos(
          name: '仓库AI监控',
          url: '',
        ),
        WorkVideos(
          name: '产业看护场景',
          url: '',
        ),
        WorkVideos(
          name: '道路安全场景',
          url: '',
        ),
        WorkVideos(
          name: '火情预警AI监控',
          url: '',
        ),
        WorkVideos(
          name: '垃圾治理场景',
          url: '',
        ),
        WorkVideos(
          name: '明厨亮灶AI监控',
          url: '',
        ),
        WorkVideos(
          name: '人车布控',
          url: '',
        ),
        WorkVideos(
          name: '消防占道AI监控',
          url: '',
        ),
      ],
    ),
  ];
}
